home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTiiiieeee::::::::RRRReeeeffffHHHHaaaasssshhhh((((3333)))) 22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222)))) TTTTiiiieeee::::::::RRRReeeeffffHHHHaaaasssshhhh((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- Tie::RefHash - use references as hash keys
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- require 5.004;
- use Tie::RefHash;
- tie HASHVARIABLE, 'Tie::RefHash', LIST;
-
- untie HASHVARIABLE;
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This module provides the ability to use references as hash
- keys if you first tie the hash variable to this module.
-
- It is implemented using the standard perl TIEHASH interface.
- Please see the tie entry in _p_e_r_l_f_u_n_c(1) and _p_e_r_l_t_i_e(1) for
- more information.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- use Tie::RefHash;
- tie %h, 'Tie::RefHash';
- $a = [];
- $b = {};
- $c = \*main;
- $d = \"gunk";
- $e = sub { 'foo' };
- %h = ($a => 1, $b => 2, $c => 3, $d => 4, $e => 5);
- $a->[0] = 'foo';
- $b->{foo} = 'bar';
- for (keys %h) {
- print ref($_), "\n";
- }
-
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Gurusamy Sarathy gsar@umich.edu
-
- VVVVEEEERRRRSSSSIIIIOOOONNNN
- Version 1.2 15 Dec 1996
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _p_e_r_l(1), _p_e_r_l_f_u_n_c(1), _p_e_r_l_t_i_e(1)
-
-
-
-
-
-
-
-
-
-
-
-
- Page 1 (printed 10/23/98)
-
-
-
-
-
-
- TTTTiiiieeee::::::::RRRReeeeffffHHHHaaaasssshhhh((((3333)))) 22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222)))) TTTTiiiieeee::::::::RRRReeeeffffHHHHaaaasssshhhh((((3333))))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 10/23/98)
-
-
-
-
-
-
-